<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OptRespPerson.aspx.cs" Inherits="OptRespPerson" culture="auto" uiculture="auto" meta:resourcekey="PageResource1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
	<title>Untitled Page</title>
	<base target="_self" />
	<link href="ip.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:Panel ID="Panel1" runat="server">
               <fieldset>
					<legend>
						<asp:Label ID="lblTitle" runat="server" Text="Assign Responsible Person"/>
					</legend>
                    <asp:Panel ID="Panel2" runat="server">
						<asp:GridView ID="gvRespPersons" runat="server" 
								AllowSorting="True" 
								AutoGenerateColumns="False"
								BackColor="White" 
								BorderColor="#660000" 
								BorderStyle="None" 
								BorderWidth="1px"
								CellPadding="0" 
								CellSpacing="0" 
								Width="100%"
								CssClass="Grid" 
								DataKeyNames="ProjectCode, ResponsiblePerson"
								EmptyDataText="No Responsible Persons Record Available."
								OnSelectedIndexChanged="OnSelectedIndexChanged" 
								OnRowCreated="OnRowCreated">
							<Columns>
								<asp:ButtonField CommandName="Select" DataTextField="UserName" HeaderText="Responsible Persons" meta:resourcekey="ButtonFieldResource1" SortExpression="ResponsiblePerson"/>
							</Columns>
							<HeaderStyle CssClass="GridHeaderStyle" ForeColor="White" />
							<RowStyle CssClass="GridRowStyle"/>
							<AlternatingRowStyle CssClass="GridAltRowStyle" />
							<SelectedRowStyle CssClass="GridAltRowStyle"/>
							<PagerStyle CssClass="GridPagerStyle" ForeColor="White"/>
							<FooterStyle CssClass="GridFooterStyle" ForeColor="White" />
						</asp:GridView>
					</asp:Panel>
                    <table>
                        <tr>
                            <td>
                                <asp:Label ID="lblRespPerson" Text="Responsible Person" meta:resourcekey="lblRespPersonResource1" runat="server"/>
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlRespPerson" Width="120px" runat="server"/>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" style="text-align: center">
                                <asp:Button ID="btnNew" Text="New" CausesValidation="False" CssClass="submit" meta:resourcekey="btnNewResource1" runat="server" OnClick="OnClick"/>
                                <asp:Button ID="btnModify" Text="Edit" Visible="False" CausesValidation="False" CssClass="submit" meta:resourcekey="btnModifyResource1" runat="server" OnClick="OnClick"/>
                                <asp:Button ID="btnSave" Text="Save" CssClass="submit" meta:resourcekey="btnSaveResource1" runat="server" OnClick="OnClick"/>
                                <asp:Button ID="btnDelete" Text="Delete" CausesValidation="False" CssClass="submit" meta:resourcekey="btnDeleteResource1" runat="server" OnClick="OnClick"/>
                                <asp:Button ID="btnCancel" Text="Cancel" CausesValidation="False" CssClass="reset" meta:resourcekey="btnCancelResource1" runat="server" OnClick="OnClick"/>
                            </td>
                        </tr>
						<tr>
							<td colspan="2">
								<asp:Label ID="lblError" CssClass="error" runat="server"/>
							</td>
						</tr>
                    </table>
                </fieldset>
            </asp:Panel>
        </div>
    </form>
</body>
</html>
